const install = (Vue, vm) => {
	console.log("Utils Install");
	const parseToastArgs = (res,callback = ()=>{}) => {
		return {
			title: res.msg
			, type: res.code == 200 ? 'success' : 'error',
			callback:callback
		}
	}

	vm.$u.util = {
		parseToastArgs
	}
}


export default {
	install
}
